<!DOCTYPE html>
<!-- saved from url=(0030)http://localhost:3000/#/extend -->
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  
  <title>拓展系统 - LyAPI - Document</title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="description" content="Description">
  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <link rel="stylesheet" href="./拓展系统 - LyAPI - Document_files/vue.css">
</head>
<body data-page="extend.md" class="ready sticky">
  <nav class="app-nav no-badge">
    <a href="http://lyapi.wwsg18.com/">官网</a>
  </nav>
  <main><button class="sidebar-toggle"><div class="sidebar-toggle-button"><span></span><span></span><span></span></div></button><aside class="sidebar"><h1><a class="app-name-link" data-nosearch="" href="http://localhost:3000/">LyAPI开发文档</a></h1><div class="sidebar-nav"><ul>
<li><a href="http://localhost:3000/#/README">前言</a></li>
<li><a href="http://localhost:3000/#/basic">基本用法</a></li>
<li><a href="http://localhost:3000/#/hello-world">Hello World</a></li>
<li><a href="http://localhost:3000/#/custom-code">自定义状态码</a></li>
<li><a href="http://localhost:3000/#/custom-content">自定义内容</a></li>
<li><a href="http://localhost:3000/#/database">数据库操作</a></li>
<li><a href="http://localhost:3000/#/autoload">自动加载</a></li>
<li><a href="http://localhost:3000/#/logger">日志系统</a></li>
<li><a href="http://localhost:3000/#/cache">缓存系统</a></li>
<li><a href="http://localhost:3000/#/i18n">国际化</a></li>
<li><a href="http://localhost:3000/#/init-after">前置&amp;后置操作</a></li>
<li><a href="http://localhost:3000/#/View">View的使用</a></li>
<li class=""><a href="http://localhost:3000/#/extend">拓展系统</a><ul class="app-sub-sidebar"><li class=""><a class="section-link" href="http://localhost:3000/#/extend?id=%e5%b7%b2%e7%9f%a5%e6%8b%93%e5%b1%95%e5%88%97%e8%a1%a8">已知拓展列表</a></li><li class="active"><a class="section-link" href="http://localhost:3000/#/extend?id=%e6%8b%93%e5%b1%95%e7%9a%84%e5%ae%89%e8%a3%85">拓展的安装</a></li><li><a class="section-link" href="http://localhost:3000/#/extend?id=%e6%8b%93%e5%b1%95%e7%9a%84%e4%bd%bf%e7%94%a8">拓展的使用</a></li></ul></li>
<li><a href="http://localhost:3000/#/updating">更新中...</a></li>
</ul>
</div></aside><section class="content"><article class="markdown-section" id="main"><h1 id="拓展系统"><a href="http://localhost:3000/#/extend?id=%e6%8b%93%e5%b1%95%e7%b3%bb%e7%bb%9f" data-id="拓展系统" class="anchor"><span>拓展系统</span></a></h1><blockquote>
<p>LyAPI本身的功能很少，但是我们可以通过安装拓展来实现更多功能...</p></blockquote>
<h2 id="已知拓展列表"><a href="http://localhost:3000/#/extend?id=%e5%b7%b2%e7%9f%a5%e6%8b%93%e5%b1%95%e5%88%97%e8%a1%a8" data-id="已知拓展列表" class="anchor"><span>已知拓展列表</span></a></h2><ul>
<li>array2xml 数组转XML数据</li>
<li>visit-stats 接口访问数量统计</li>
<li>ladoc 在线生成接口文档</li>
<li>持续更新中...</li>
</ul>
<h2 id="拓展的安装"><a href="http://localhost:3000/#/extend?id=%e6%8b%93%e5%b1%95%e7%9a%84%e5%ae%89%e8%a3%85" data-id="拓展的安装" class="anchor"><span>拓展的安装</span></a></h2><p>你可以使用composer来安装拓展：</p><pre v-pre="" data-lang=""><code class="lang-">composer require lyapi/ExtendName</code></pre><p>比如说安装ladoc：</p><pre v-pre="" data-lang=""><code class="lang-">composer require lyapi/ladoc</code></pre><h2 id="拓展的使用"><a href="http://localhost:3000/#/extend?id=%e6%8b%93%e5%b1%95%e7%9a%84%e4%bd%bf%e7%94%a8" data-id="拓展的使用" class="anchor"><span>拓展的使用</span></a></h2><p>所有拓展都是位于命名空间: LyApi/extend 下的...</p><p>比如说使用ladoc:</p><pre v-pre="" data-lang=""><code class="lang-">$doc = new LyApi\extend\LADoc\Extend();</code></pre><p class="tip">任何拓展的入口都是Extend类</p></article></section></main>
  <script>
    window.$docsify = {
      name: 'LyAPI开发文档',
      homepage: 'preface.md',
      loadSidebar: true,
      subMaxLevel: 2
    }
  </script>
  <script src="./拓展系统 - LyAPI - Document_files/docsify.min.js"></script>

  <script src="./拓展系统 - LyAPI - Document_files/prism-bash.js"></script>
  <script src="./拓展系统 - LyAPI - Document_files/prism-php.js"></script>

<script src="./拓展系统 - LyAPI - Document_files/livereload.js" async="" defer=""></script>

<div class="progress" style="opacity: 0; width: 0%;"></div></body></html>